package cn.edu.tsinghua.cic.ccss.web;

import org.acegisecurity.context.SecurityContextHolder;
import org.acegisecurity.userdetails.UserDetails;



public abstract class SuperAction {
	protected String getLoginCardNum() {
//		UserDetails user = (UserDetails) SecurityContextHolder.getContext()
//				.getAuthentication().getPrincipal();
//		if (user == null) {
//			throw new org.acegisecurity.AuthenticationCredentialsNotFoundException(
//					"用户未登录");
//		}
//		return user.getUsername();

		// String[] arr = { "2006980033", "2009621373", "2001990001",
		// "2001990002", "2012621111", "2012040511", "2011050432",
		// "1990100512", "2012030121", "2012030122", "2012030123",
		// "2012030124", "2012030125", "2012030126", "2012030127",
		// "2012030128", "2012030129", "2012030130", "2012030131",
		// "2012030132", "2012030133" };
		// int r = NumberUtil.getRandomInteger(0, arr.length - 1);
		// return arr[r];

		 return "2011050432";
	}
}
